package com.person.yhzs.user.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * (User)实体类
 *
 * @author luolin
 * @since 2022-5-30 17:14:23
 */
@ApiModel("用户实体类")
public class User implements Serializable {
    private static final long serialVersionUID = -65632848491530139L;
    /**
     * 主键
     */
    @ApiModelProperty("主键ID")
    private Integer id;
    /**
     * 账户
     */
    @ApiModelProperty("账户")
    private String userAccount;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String userPassword;
    /**
     * 真实姓名
     */
    @ApiModelProperty("用户名")
    private String userName;
    /**
     * 昵称
     */
    @ApiModelProperty("昵称")
    private String nickName;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String avatar;
    /**
     * 0未激活1已经激活
     */
    @ApiModelProperty("是否激活")
    private Integer active;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date userCreateTime;

    /**
     * 用户手机号
     */
    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    /**
     * 登录类型
     */
    @ApiModelProperty(value = "登录类型")
    private Integer userLoginType;

    /**
     * 用户登录时间
     */
    @ApiModelProperty(value = "用户登录时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date userLoginTime;

    /**
     * 身份证号
     **/
    private String idCard;

    /**
     * 性别
     **/
    private Integer sex;

    /**
     * 学历
     **/
    private String education;

    /**
     * 毕业院校
     **/
    private String schoolTag;

    /**
     * 居住地
     **/
    private String residence;

    /**
     * 出身地
     **/
    private String birthplace;

    /**
     * 职业
     **/
    private String professional;

    /**
     * 职位
     **/
    private String position;

    /**
     * 辈分
     **/
    private String generationGrade;

    /**
     * 个人介绍
     **/
    private String selfIntroduction;

    /**
     * 是否在世，0：在世，1：去世
     **/
    private Integer userDie;

    /**
     * 用户类型，0：超级管理员，1、用户，2、管理员
     */
    private Integer userType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Integer getUserLoginType() {
        return userLoginType;
    }

    public void setUserLoginType(Integer userLoginType) {
        this.userLoginType = userLoginType;
    }

    public Date getUserCreateTime() {
        return userCreateTime;
    }

    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Date getUserLoginTime() {
        return userLoginTime;
    }

    public void setUserLoginTime(Date userLoginTime) {
        this.userLoginTime = userLoginTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getSchoolTag() {
        return schoolTag;
    }

    public void setSchoolTag(String schoolTag) {
        this.schoolTag = schoolTag;
    }

    public String getResidence() {
        return residence;
    }

    public void setResidence(String residence) {
        this.residence = residence;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getGenerationGrade() {
        return generationGrade;
    }

    public void setGenerationGrade(String generationGrade) {
        this.generationGrade = generationGrade;
    }

    public String getSelfIntroduction() {
        return selfIntroduction;
    }

    public void setSelfIntroduction(String selfIntroduction) {
        this.selfIntroduction = selfIntroduction;
    }

    public Integer getUserDie() {
        return userDie;
    }

    public void setUserDie(Integer userDie) {
        this.userDie = userDie;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userAccount='" + userAccount + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userName='" + userName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", avatar='" + avatar + '\'' +
                ", active=" + active +
                ", userCreateTime=" + userCreateTime +
                ", userPhone='" + userPhone + '\'' +
                ", userLoginType=" + userLoginType +
                ", userLoginTime=" + userLoginTime +
                ", idCard='" + idCard + '\'' +
                ", sex=" + sex +
                ", education='" + education + '\'' +
                ", schoolTag='" + schoolTag + '\'' +
                ", residence='" + residence + '\'' +
                ", birthplace='" + birthplace + '\'' +
                ", professional='" + professional + '\'' +
                ", position='" + position + '\'' +
                ", generationGrade='" + generationGrade + '\'' +
                ", selfIntroduction='" + selfIntroduction + '\'' +
                ", userDie=" + userDie +
                ", userType=" + userType +
                '}';
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

}

